<template>
    <div>
        <el-dialog :title="addInfo.title" :visible.sync="addInfo.addShow">
            <el-form :model="addForm" label-width="100px">
                <el-form-item label="菜单地址" prop="region">
                    <el-select v-model="addForm.pid" placeholder="请选择活动区域">
                        <el-option label="顶级菜单" value="0"></el-option>
                        <el-option label="系统设置" value="1"></el-option>
                        <el-option label="商场管理" value="2"></el-option>
                        <el-option label="运维管理" value="3"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="菜单地址" prop="url">
                    <el-input v-model="addForm.url"></el-input>
                </el-form-item>
                <el-form-item label="菜单名称" prop="title">
                    <el-input v-model="addForm.title"></el-input>
                </el-form-item>
                <el-form-item label="菜单类型" prop="name">
                    <el-radio-group v-model="addForm.resource">
                        <el-radio label="线上品牌商赞助"></el-radio>
                        <el-radio label="线下场地免费"></el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="菜单状态" prop="status">
                    <el-switch v-model="addForm.status" active-color="#13ce66" inactive-color="#ff4949">
                    </el-switch>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="addInfo.addShow = false">取 消</el-button>
                <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
export default {
    name: 'MyAppAddDialog',
    props: {
        addInfo: {
            type: Object
        }
    },
    data() {
        return {
            addForm: {
                pid:"",
                title: "",
                icon: "",
                type: 2,
                url: "",
                status: 1
            }
        };
    },

    mounted() {

    },

    methods: {

    },
};
</script>

<style lang="scss" scoped>

</style>